package com.dmooo.ymx.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dmooo.ymx.R;
import com.dmooo.ymx.activity.JiayoumsgActivity;
import com.dmooo.ymx.bean.MerchantAdminListBean;
import com.dmooo.ymx.config.Constants;

import java.util.List;

public class MerchantAdminListAdapter extends BaseQuickAdapter<MerchantAdminListBean.Item, BaseViewHolder> {
    public MerchantAdminListAdapter(int layoutResId, @Nullable List<MerchantAdminListBean.Item> data) {
        super(layoutResId, data);
    }
    @Override
    protected void convert(BaseViewHolder helper, MerchantAdminListBean.Item item) {
        Glide.with(mContext).load(Constants.APP_IP+item.avatar).into((ImageView) helper.getView(R.id.img_head));
//        GlideUtils.showImageViewToCircle(mContext,mContext.getResources().getDrawable(R.mipmap.defaultpicture_pc), Constants.APP_INTERFACE_BASE_URL+item.avatar,helper.getView(R.id.img_head));
        helper.setText(R.id.txt_name,item.service_nickname);
//        helper.set(R.id.img_head,Constants.APP_IP+item.avatar);
    }
}
